/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package programas;

import java.util.Scanner;

/**
 *
 * @author gamas
 */
public class NumeroLetras {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String a;
        Scanner sc=new Scanner(System.in);
        System.out.println("Introduce la cadena");
        a=sc.next();
        String[]arreglo=a.split(",");
        for(int a1=0;a1<a.length();a1+=2){
        int numero=Integer.parseInt(arreglo[a1]);

        for(int x=0;x<numero;x++)
                System.out.print(arreglo[a1^+1]);

        }
        System.out.print(",");
        
    }

}
